﻿
package kliment.display.draw.style {
	
	/**
	* ...
	* @author Kliment
	*/
	public class LineStyle {
		public var width:Number;
		public var color:uint;
		public var alpha:Number;
		public var pixelHinting:Boolean;
		public var scaleMode:String;
		public var caps:String;
		public var joints:String;
		public var miterLimit:Number;
		
		public function LineStyle(width:Number, color:uint = 0, alpha:Number = 1.0, pixelHinting:Boolean = true, scaleMode:String = "normal", caps:String = null, joints:String = null, miterLimit:Number = 3) {
			this.width = width;
			this.color = color;
			this.alpha = alpha;
			this.pixelHinting = pixelHinting;
			this.scaleMode = scaleMode;
			this.caps = caps;
			this.joints = joints;
			this.miterLimit = miterLimit;
		}
		
		public function clone():LineStyle {
			return new LineStyle(width, color, alpha, pixelHinting, scaleMode, caps, joints, miterLimit);
		}
	}
}
